// Copyright©,2020-2025
// Author: caocheng
// Version: 1.0.0
// Date: 2021/2/25 14:17
// Description：
package SummerUtils

import (
	"strings"
)

// Deprecated: Use "strings.EqualFold" instead.
func EqualsIgnoreCase(a, b string) bool {
	return strings.EqualFold(a, b)
}

// DefaultString 将 nil 转换成空字符串
func DefaultString(v interface{}) (string, bool) {
	if v == nil {
		return "", true
	}
	s, ok := v.(string)
	return s, ok
}